package lyxs_916.rxjavademo.http;


import lyxs_916.rxjavademo.entity.MovieEntity;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by 阳 on 2016/9/21.
 */

public interface MovieService {
    @GET("top250")
    Call<MovieEntity> getTopMovie(@Query("start") int start, @Query("count") int count);


    /**
     *  @GET("top250")
    Observable<MovieEntity> getTopMovie(@Query("start") int start, @Query("count") int count);
     */
    @GET("top250")
    Observable<MovieEntity> getTopMovieRx(@Query("start")int start, @Query("count")int count);
}
